﻿/*
 * KLF Headless Browser
 * Written by Kris Oye <kristianoye@gmail.com>
 * Copyright (C) 2011-2012.  All rights reserved.
 */
namespace KLF.Lib.Browser.DOM.HTML
{
    #region Using Statements

    using System;

    #endregion

    /// <summary>
    /// For the Q and BLOCKQUOTE elements. See the Q element 
    /// definition in HTML 4.01.
    /// </summary>
    public class HTMLQuoteElement : HTMLElement
    {
        #region Constructors

        internal HTMLQuoteElement(Document owner, string tagName)
            : base(owner, tagName)
        {
        }

        #endregion

        #region DOM Level 2 HTML Compliance

        /// <summary>
        /// A URI [IETF RFC 2396] designating a source document or message. 
        /// See the cite attribute definition in HTML 4.01.
        /// </summary>
        public string cite
        {
            get
            {
                return getAttribute(HTMLConstants.HTML_ATT_CITE);
            }
            set
            {
                if (String.IsNullOrEmpty(value))
                    removeAttribute(HTMLConstants.HTML_ATT_CITE);
                else
                    setAttribute(HTMLConstants.HTML_ATT_CITE, value);
            }
        }

        #endregion
    }
}
